﻿using System.Configuration;

namespace EmptyWallGallery.Core
{
    public class Configs
    {
        public static int SiteId = int.Parse(ConfigurationManager.AppSettings["SiteID"]);
        public static string WebName = ConfigurationManager.AppSettings["WebName"];
        public static string WebTitle = ConfigurationManager.AppSettings["WebTitle"];
        public static string WebDescription = ConfigurationManager.AppSettings["WebDescription"];
        public static string HomeUrl = ConfigurationManager.AppSettings["HomeUrl"];
        public static string HomeUrlAdmin = ConfigurationManager.AppSettings["HomeUrl.Admin"];
        public static string HomeUrlForum = ConfigurationManager.AppSettings["HomeUrl.Forum"];
        public static string ConnectionString = ConfigurationManager.ConnectionStrings["EmptyWallGallery.Core.Properties.Settings.EmptyWallGalleryConnectionString"].ToString();
        public static string FolderSaveData = ConfigurationManager.AppSettings["FolderSaveData"];
        public static string ArticleFile = FolderSaveData + ConfigurationManager.AppSettings["ArticleFile"];
        public static string VoteFile = FolderSaveData + ConfigurationManager.AppSettings["VoteFile"];
        public static string RssFile = FolderSaveData + ConfigurationManager.AppSettings["RSSFile"];
        public static string CommentFile = FolderSaveData + ConfigurationManager.AppSettings["CommentFile"];
        public static string UserFolder = ConfigurationManager.AppSettings["UserFolder"];
        public static string UserVirtualFolder = ConfigurationManager.AppSettings["UserVirtualFolder"];
        public static double TimeLine = double.Parse(ConfigurationManager.AppSettings["TimeLine"]);
        public static bool IsCommentAlert = bool.Parse(ConfigurationManager.AppSettings["IsCommentAlert"]);
        public static string SmtpHost = ConfigurationManager.AppSettings["SmtpHost"];
        public static string SmtpUser = ConfigurationManager.AppSettings["SmtpUser"];
        public static string SmtpPass = ConfigurationManager.AppSettings["SmtpPass"];
        public static string Domain = ConfigurationManager.AppSettings["Domain"];
        public static string WebMasterEmail = ConfigurationManager.AppSettings["WebMasterEmail"];
        public static string WebReportEmailCc = ConfigurationManager.AppSettings["WebReportEmailCc"];
        public static string ProxyServer = ConfigurationManager.AppSettings["ProxyServer"];
        public static string ProxyPort = ConfigurationManager.AppSettings["ProxyPort"];
        public static string ProxyUserName = ConfigurationManager.AppSettings["ProxyUserName"];
        public static string ProxyPassword = ConfigurationManager.AppSettings["ProxyPassword"];
        public static string ProxyUserDomain = ConfigurationManager.AppSettings["ProxyUserDomain"];
    }
}


